﻿do
	IGAS:NewAddon("IGAS_Studio")

	local _DB

	------------------------------------------------------------
	-- ScriptType
	------------------------------------------------------------
	_DB = CreateHelpDB(IGAS.GUI.Widget.TabardModel, "ScriptType")
	_DB:SetBaseHelpDB(CreateHelpDB(IGAS.GUI.Widget.PlayerModel, "ScriptType"))

	------------------------------------------------------------
	-- Function
	------------------------------------------------------------
	_DB = CreateHelpDB(IGAS.GUI.Widget.TabardModel, "Function")
	_DB:SetBaseHelpDB(CreateHelpDB(IGAS.GUI.Widget.PlayerModel, "Function"))

	_DB:AddCodeHelp("GetLowerEmblemFileName", [=[Returns the image file for the lower portion of the tabard model's current emblem design]=], [=[GetLowerEmblemFileName("filename")]=])
	_DB:AddCodeHelp("CycleVariation", [=[Cycles through available design variations for the tabard model]=], [=[CycleVariation(variable, delta)]=])
	_DB:AddCodeHelp("GetLowerBackgroundFileName", [=[Returns the image file for the lower portion of the tabard model's current background design]=], [=[GetLowerBackgroundFileName("filename")]=])
	_DB:AddCodeHelp("GetUpperEmblemFileName", [=[Returns the image file for the upper portion of the tabard model's current emblem design]=], [=[GetUpperEmblemFileName("filename")]=])
	_DB:AddCodeHelp("Save", [=[Saves the current tabard model design as the player's guild tabard]=], [=[Save()]=])
	_DB:AddCodeHelp("CanSaveTabardNow", [=[Returns whether the tabard model's current design can be saved as the player's guild tabard]=], [=[CanSaveTabardNow()]=])
	_DB:AddCodeHelp("GetUpperBackgroundFileName", [=[Returns the image file for the upper portion of the tabard model's current background design]=], [=[GetUpperBackgroundFileName("filename")]=])
	_DB:AddCodeHelp("GetUpperEmblemTexture", [=[Sets a `Texture` object to display the upper portion of the tabard model's current emblem design]=], [=[GetUpperEmblemTexture(texture)]=])
	_DB:AddCodeHelp("InitializeTabardColors", [=[Sets the tabard model's design to match the player's guild tabard]=], [=[InitializeTabardColors()]=])
	_DB:AddCodeHelp("GetLowerEmblemTexture", [=[Sets a `Texture` object to display the lower portion of the tabard model's current emblem design]=], [=[GetLowerEmblemTexture(texture)]=])
	------------------------------------------------------------
	-- Property
	------------------------------------------------------------
	_DB = CreateHelpDB(IGAS.GUI.Widget.TabardModel, "Property")
	_DB:SetBaseHelpDB(CreateHelpDB(IGAS.GUI.Widget.PlayerModel, "Property"))

end
